home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / 386bug.arc / 386BUG_C.C < prev    next >
C/C++ Source or Header  |  1987-06-05  |  500b  |  25 lines

  1. #include    <stdio.h>
  2.  
  3. void    fail();
  4. #define    FAIL    1
  5.  
  6. main() {
  7. long
  8.     lcount;
  9.  
  10. printf("WARNING:\n\007This program is designed to run only on a 386.\n");
  11. printf("Press <ESC> to abort, any other key to continue ");
  12. if (getch() == '\x1B')
  13.     exit(0);
  14. printf("Testing for 80386 32-bit multiply bug\n");
  15. for (lcount = 1; lcount < 63000; lcount++) {
  16.     if (multest() == FAIL) {
  17.     printf ("\007\007FAILS.\n");
  18.     exit(-1);
  19.     } 
  20.     printf("Pass count =%ld.\r", lcount);
  21.     }
  22.  
  23. exit(0);
  24. }
  25.